﻿using Zws.MongoDb;

namespace App.Chat.Models.MongoModels
{
    public class ChatRecord : MongoObj
    {
        public string FromUserId { get; set; }
        public string ToId { get; set; }

        public ContentTypeEnum ContentType { get; set; }
        public string Content { get; set; }
        /// <summary>
        /// 后台数据库持久化
        /// </summary>
        public bool IsPersisted { get; set; }
        public bool IsGroupMsg { get; set; }
        /// <summary>
        /// mongodb软删除配合mysql存储
        /// </summary>
        //public bool IsDeleted { get; set; }
        public DateTime CreateTime { get; set; } = DateTime.UtcNow;
    }
    public enum ContentTypeEnum
    {
        FILE,
        IMAGE,
        TEXT
    }
}
